home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
hity wydania
/
Ubuntu 9.10 PL
/
karmelkowy-koliberek-desktop-9.10-i386-PL.iso
/
casper
/
filesystem.squashfs
/
bin
/
get_mountoptions
< prev
next >
Wrap
Text File
|
2009-01-11
|
337b
|
23 lines
#!/bin/sh
. /usr/share/debconf/confmodule
dev=$1
id=$2
part=$dev/$id
filesystem=$(cat $part/acting_filesystem)
cd $dev
options=''
for op in $(cat /lib/partman/mountoptions/$filesystem); do
if [ -f $part/options/$op ]; then
options="${options:+$options,}$op"
fi
done
if [ -z "$options" ]; then
options=defaults
fi
echo $options